pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut pre = 0;
    let mut now = 1;
    let mut res = 0;
    loop {
        if now > threshold {
            break;
        }
        if now % 2 == 1 {
            res += now;
        }
        let temp = now;
        now += pre;
        pre = temp;
    }

    res
}
